﻿using Microsoft.UI.Xaml.Data;

namespace WhaleAccount.Helpers;

public class IntegerToCategoryConverter : IValueConverter
{
    public object Convert(object value, Type targetType, object parameter, string language)
    {
        var category = (int)value;
        return category == 0 ? "支出" : "收入";
    }
    public object ConvertBack(object value, Type targetType, object parameter, string language) => throw new NotImplementedException();
}
